<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2019/5/15
 * Time: 17:18
 */

namespace app\server;
use rap\db\DB;
use rap\db\Record;

class VioUser extends Record
{
    public function addUserInfo($data) {

        $res = DB::insert('mp_vio_user',$data);

        return $res;
    }

    public function getUserRankList($where, $page, $limit = 10, $field = "*") {

        $list = DB::select('')
            ->limit($limit * $page, $limit)
            ->where($where)
            ->fields($field)
            ->order("")
            ->findAll();

        return $list;
    }
}